/*
 *封装的搜索请求
*/
// 引入请求模块
import request from '@/utils/request'

// 获取搜索建议接口
export const getSearchSuggestions = q => {
  return request({
    method: 'GET',
    url: '/v1_0/suggestion',
    params: {
      q
    }
  })
}

// 请求搜索结果接口
export const getSearchResoults = params => {
  return request({
    method: 'GET',
    url: '/v1_0/search',
    params
  })
}
